import request from '@/utils/request'

// 查询团队老师列表
export function listTeamTeacher(query) {
  return request({
    url: '/eqxm/teamTeacher/list',
    method: 'get',
    params: query
  })
}

// 查询团队老师详细
export function getTeamTeacher(id) {
  return request({
    url: '/eqxm/teamTeacher/' + id,
    method: 'get'
  })
}

// 新增团队老师
export function addTeamTeacher(data) {
  return request({
    url: '/eqxm/teamTeacher',
    method: 'post',
    data: data
  })
}

// 修改团队老师
export function updateTeamTeacher(data) {
  return request({
    url: '/eqxm/teamTeacher',
    method: 'put',
    data: data
  })
}

// 删除团队老师
export function delTeamTeacher(id) {
  return request({
    url: '/eqxm/teamTeacher/' + id,
    method: 'delete'
  })
}

// 导出团队老师
export function exportTeamTeacher(query) {
  return request({
    url: '/eqxm/teamTeacher/export',
    method: 'get',
    params: query
  })
}

export function canChooseList() {
  return request({
    url: '/eqxm/teamTeacher/canChooseList',
    method: 'get'
  })
}
// 学生管理员下拉框
export function canChooseStuList(parm) {
  return request({
    url: '/eqxm/teamTeacher/canChooseStuList/' + parm,
    method: 'get'
  })
}
// 教师下拉框
export function canChooseTeacherList(parm) {
  return request({
    url: '/eqxm/teamTeacher/canChooseTeacherList/' + parm,
    method: 'get'
  })
}
